package lambda;
public class TestD {
    public static void main(String[] args) {
        D d = new D() {
            @Override
            public int max(int a,  int b) {
                System.out.println("即将计算a和b中的最大值");
                return a>b?a:b;
            }
        };
        System.out.println(d.max(10,20));
    }
}
